import request from "@/server/request.js";

// 消息中心
export const messageApi = (params) => {
	return new request().requestGet(`/api/message`, params);
};

// 消息大类列表
export const messageTypeApi = (type,params) => {
	return new request().requestGet(`/api/message/${type}`, params);
};

// 一键已读
export const readApi = (params) => {
	return new request().requestPost(`/api/message/read`, params);
};

// 消息详情
export const detailsApi = (categoryType,messageId,params) => {
	return new request().requestGet(`/api/message/${categoryType}/${messageId}`, params);
};

// 客服中心
export const supportApi = (params) => {
	return new request().requestGet(`/api/support`, params);
};